﻿using System;
using System.Collections.Generic;
using System.Text;

namespace class3Homework
{
    class circle:geometry
    {
        private double radius;
        public override double Area
        {
            get
            {
                return radius * radius *(22/7);
            }
        }
        public double Radius
        {
            get
            {
                return radius;
            }
            set
            {
                radius = value;
            }
        }
        public circle(double radius):base("circle")
        {
            this.radius = radius;
        }
        public override bool selfCheck()
        {
           if(radius>0&&Name.Equals("circle"))
            {
                return true;
            }
           else
            {
                return false;
            }
        }
    }
}
